﻿<Window x:Class="Admin.UI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="后台管理系统" Height="350" Width="863" Loaded="Window_Loaded" WindowState="Maximized">
    <Grid>
        <DockPanel>
            <Menu Height="20"     DockPanel.Dock="Top">
                <MenuItem Header="系统">
                    <MenuItem Header="修改密码" Click="MenuItem_Click_1"></MenuItem>
                    <MenuItem Header="退出" Click="MenuItem_Click"></MenuItem>
                </MenuItem>
                <MenuItem Header="用户">
                    <MenuItem Header="添加" Click="btnAdd_Click"></MenuItem>

                    <MenuItem Header="修改" Click="btnEdit_Click"></MenuItem>
                    <MenuItem Header="处理激活" Click="MenuItem_Click_4"></MenuItem>
                    <MenuItem Header="全部显示" Click="MenuItem_Click_3"></MenuItem>
                </MenuItem>
                <MenuItem Header="关于" Click="MenuItem_Click_2"  >
                    
                </MenuItem>

            </Menu>

            <ToolBar DockPanel.Dock="Top" Height="30">

                <Button Name="btnAdd" ToolTip="新增" Click="btnAdd_Click">
                    <Image Source="Images/add.ico" ></Image>
                </Button>

                <Button Name="btnMin" ToolTip="删除" Click="btnMin_Click">
                    <Image Source="Images/min.png" ></Image>
                </Button>

                <Button Name="btnEdit" ToolTip="编辑" Click="btnEdit_Click">
                    <Image Source="Images/edit.png" ></Image>
                </Button>
                <Label Content="多条件查找:"></Label>
                <TextBox Width="100"  Name="Findbox"></TextBox>

                <Button Name="btnFind" ToolTip="查找" Click="btnFind_Click">
                    <Image Source="Images/find.png"></Image>
                </Button>

                <Button Name="btnAct" ToolTip="设为文员" Click="btnAct_Click">
                    <Image Source="Images/act.ico"></Image>
                </Button>

                <Button Name="btnActE" ToolTip="设为工程师" Click="btnActE_Click">
                    <Image Source="Images/engin.ico"></Image>
                </Button>

                <Button Name="btnActAll" ToolTip="激活全部" Click="btnActAll_Click" Visibility="Hidden">
                    <Image Source="Images/actall.ico"></Image>
                </Button>

            </ToolBar>
            <DataGrid AutoGenerateColumns="False" Name="dg1" IsReadOnly="True">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="用户名" Width="120" Binding="{Binding UserName}"></DataGridTextColumn>
                    <DataGridTextColumn Header="密码" Width="300" Binding="{Binding Password}"></DataGridTextColumn>

                    <DataGridTextColumn Header="用户类型" Width="120" Binding="{Binding Usert}" ></DataGridTextColumn>
                    <DataGridTextColumn Header="员工号" Width="120" Binding="{Binding EmployeeID}" ></DataGridTextColumn>

                </DataGrid.Columns>

            </DataGrid>
        </DockPanel>
    </Grid>
</Window>